package com.lmaye.design.patterns.ood.ocp.comply;

/**
 * -- 测试
 *
 * <pre>
 *     1. 没有遵守开闭原则；
 *     2. 当新增图形时还要对绘制图形的方法进行修改；
 * </pre>
 *
 * @author lmay.Zhou
 * @date 2020/11/12 21:24 星期四
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class Test {
    public static void main(String[] args) {
        DrawGraph drawGraph = new DrawGraph();
        drawGraph.drawShape(new Rectangle());
        drawGraph.drawShape(new Circle());
        drawGraph.drawShape(new Triangle());
    }
}
